import request from '@/utils/request'

export function getList(params) {


  return request({
    url: '/course-web/courseInformation/.jsonp?page=1&limit=100',
    method: 'get',
    params
  })
}

export function searchList(params, id){
  return request({
    url: `/course-web/courseInformation/findbyid/${id}`,
    method: 'get',
    params
  })
}

export const delTableRow = (courseId) => {
  return request({
    url: `/course-web/courseInformation/deletebyid/${courseId}`,
    method: 'get',
  })
}


export const updateRow = (form) => {
  return request({
    url: `/course-web/courseInformation/update/${form.courseId}`,
    method: 'get',
    params:{
      courseName: form.courseName
    }
  })
}


